<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .box1 {
            /*内容的宽度和高度*/
            width: 400px;
            height: 100px;
            /*边框*/
            border: 5px solid red;
            /*内边距：内容到边框的距离   */
            padding: 20px;
            /*外边距：当前盒子与其他盒子之间的距离*/
            margin: 40px;
        }
        .box2 {
            width: 400px;
            height: 100px;
            border: 5px solid red;
        }
    </style>
</head>
<body>
<div class="box1">盒子模型1</div>
<div class="box2">盒子模型2</div>
</body>
</html>
